##################################################################
# Copy right:     Coffee Tech.
# Author:         jiaoyue
##################################################################
#编译目标
obj_y += demo
obj_y += mqtt
obj_y += report
obj_y += m0
obj_y += modbus

#单独编译
ifneq ($(tag),)
obj_y = $(tag)
endif

# 具体编译目标定义
app:make_obj
	@for i in $(obj_y) ; do \
		[ ! -d "$$i" ] || $(MAKE) -C $$i install || exit $$?; \
	done

make_obj:
	@for i in $(obj_y) ; do \
		[ ! -d "$$i" ] || $(MAKE) -C $$i || exit $$?; \
	done

appclean:
	@for i in $(obj_y) ; do \
		[ ! -d "$$i" ] || $(MAKE) -C $$i clean || exit $$?; \
	done
